------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/lemon/Desktop/cheater/6_appendix.log
  log type:  text
 opened on:  30 Nov 2024, 13:55:31

. clear

. import excel "study1_all_tasks.xlsx", sheet("Sheet1") firstrow

. logit correct sophistication age female occupation education party if task=="voice"

Iteration 0:   log likelihood = -70.571579  
Iteration 1:   log likelihood = -65.034529  
Iteration 2:   log likelihood = -65.015929  
Iteration 3:   log likelihood = -65.015928  

Logistic regression                             Number of obs     =        103
                                                LR chi2(6)        =      11.11
                                                Prob > chi2       =     0.0850
Log likelihood = -65.015928                     Pseudo R2         =     0.0787

--------------------------------------------------------------------------------
       correct |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
sophistication |   1.097514   1.155238     0.95   0.342    -1.166711    3.361738
           age |  -.0951048   .0417152    -2.28   0.023    -.1768652   -.0133445
        female |   .1198173   .4539919     0.26   0.792    -.7699904    1.009625
    occupation |  -.3321666   .4590277    -0.72   0.469    -1.231844    .5675112
     education |  -.4726054   .5603314    -0.84   0.399    -1.570835     .625624
         party |  -.2417877   .4515531    -0.54   0.592    -1.126815      .64324
         _cons |   2.377793   1.416596     1.68   0.093    -.3986841     5.15427
--------------------------------------------------------------------------------

. est sto voice

. logit correct sophistication age female occupation education party if task=="ideology"

Iteration 0:   log likelihood = -38.777191  
Iteration 1:   log likelihood = -36.800194  
Iteration 2:   log likelihood = -36.694717  
Iteration 3:   log likelihood = -36.694346  
Iteration 4:   log likelihood = -36.694346  

Logistic regression                             Number of obs     =        101
                                                LR chi2(6)        =       4.17
                                                Prob > chi2       =     0.6543
Log likelihood = -36.694346                     Pseudo R2         =     0.0537

--------------------------------------------------------------------------------
       correct |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------+----------------------------------------------------------------
sophistication |  -.5636714   1.594323    -0.35   0.724    -3.688487    2.561144
           age |  -.0075213   .0498054    -0.15   0.880     -.105138    .0900955
        female |   .3770803   .6606344     0.57   0.568    -.9177394      1.6719
    occupation |  -.7859334   .6936068    -1.13   0.257    -2.145378     .573511
     education |  -.2328972   .7530548    -0.31   0.757    -1.708857    1.243063
         party |  -.6027638   .7578281    -0.80   0.426     -2.08808    .8825519
         _cons |  -.9350089   1.722326    -0.54   0.587    -4.310705    2.440688
--------------------------------------------------------------------------------

. est sto ideology

. 
. local s "using Table2.rtf"  

. local m "voice ideology"

. 
. esttab `m' `s', mtitle(`m') nogap compress replace   ///
>          b(%12.3f) se(%12.3f) pr2 drop(`drop')   ///
>          star(* 0.1 ** 0.05 *** 0.01)
(output written to Table2.rtf)

. 
. log close
      name:  <unnamed>
       log:  /Users/lemon/Desktop/cheater/6_appendix.log
  log type:  text
 closed on:  30 Nov 2024, 13:55:31
------------------------------------------------------------------------------------------------
